POV-Ray : Newsgroups : povray.binaries.images : finish maps [67kbu] : finish maps [67kbu] Server Time
16 Nov 2024 06:14:56 EST (-0500)
  finish maps [67kbu]  
From: Mael
Date: 7 Mar 2003 04:58:26
Message: <3e686d42@news.povray.org>
A quick example to illustrate the finish maps in mlpov, here we use the same
map for specular and reflection but they could have been different.
Unfortunately the patch is far from complete (there are problems with
transformations, etc)

#declare fmap = function { pigment { image_map { jpeg "metal_44_s.jpg"
map_type 1 interpolate 2 } } }
#declare fmap_g = function { fmap(x,y,z).gray * 2 }
...
finish {
  ambient .1
  diffuse .6
  specular fmap_g
  reflection fmap
  roughness .01
}


Post a reply to this message


Attachments:
Download 'metal_44_s.jpg' (47 KB) Download 'finish.jpg' (22 KB)

Preview of image 'metal_44_s.jpg'
metal_44_s.jpg

Preview of image 'finish.jpg'
finish.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.